<?php echo $form->create('Image', array('type' => 'file', 'url' => '/admin/images/external_add'));?>
	<fieldset>
 		<legend><?php __('Add Image');?></legend>
	<?php
		echo $form->input('title');
		if(!isset($order)) {
			$order = 1;
		}
		echo $form->input('order', array('value'=>$order));
		echo $form->input('filename', array('type' => 'file','label' => __('Upload a new file', true)));
		echo $form->hidden('return_url', array('value'=> DS . $this->params['url']['url']));
		//debug($this->params['url']['url']);
	?>
	</fieldset>
<?php echo $form->end('Submit', array('value'=>__('Add image', true)));?>